package cz.cvut.manatee.client.concordance;

import com.google.gwt.event.shared.GwtEvent;



public class FormChangeEvent extends GwtEvent<FormChangeHandler> {
	String whatHappend;
	
	public static final Type<FormChangeHandler> TYPE = new Type<FormChangeHandler>();
	
	FormChangeEvent(String whatHappend) {
		this.whatHappend = whatHappend;
	}
	
	public String toString() {
		return whatHappend;
	}
	
	@Override
	protected void dispatch(FormChangeHandler handler) {
		handler.onFormChange(this);
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<FormChangeHandler> getAssociatedType() {
		return TYPE;
	}

}
